#ifndef PLAYSCENE_H
#define PLAYSCENE_H

#include <QMainWindow>
#include <vector>
#include "coins.h"
#include <QLabel>
class PlayScene : public QMainWindow
{
    Q_OBJECT
public:
    //explicit PlayScene(QWidget *parent = nullptr);
    PlayScene(int levelNum);
    void paintEvent(QPaintEvent* ev);
    void initSuccessPhoto();
    bool hasWon();

private:
    int levelNum_;
    std::vector<std::vector<int>> recState;
    Coins* coin[4][4];

    bool initIsSliver = true; //初始状态为银

    QLabel* winLabel;
signals:
    void returnToSelect();
};

#endif // PLAYSCENE_H
